from transformers import AutoConfig


def test_models():
    """测试哪些SeamlessM4T模型可用"""
    models_to_test = [
        "facebook/seamless-m4t-v2-large",
        "facebook/seamless-m4t-large",
        "facebook/seamless-m4t-medium",
        "facebook/seamless-m4t",
        "facebook/hf-seamless-m4t-medium"
    ]

    print("正在检查可用的SeamlessM4T模型...")

    for model_name in models_to_test:
        try:
            config = AutoConfig.from_pretrained(model_name)
            print(f"✓ {model_name} - 可用")
        except Exception as e:
            print(f"✗ {model_name} - 不可用: {str(e)[:100]}...")


if __name__ == "__main__":
    test_models()